package day13;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestSystem {
    public static void main(String[] args) throws Exception {
        //重定向输入输出流
        //>>>System.setIn();
//        System.setOut(new PrintStream(new FileOutputStream("out.txt")));
//        for (int i = 0; i < 20; i++) {
//            System.out.println("nihao");
//        }
        //InputStream t=System.in;
        System.setIn(new FileInputStream("out.txt"));
        //System.setOut();
        char read =(char) System.in.read();
        System.out.println(read);
        // System.setIn(t);
    }
}
